<template>
	<view class="container">
		<view v-html="content">
			
		</view>
	</view>
</template>

<script>
	import {
		JSMRequest
	} from '@/module/api'
	
	export default {
		data() {
			return {
				content: ""
			};
		},
		
		onLoad (options) {
			uni.setNavigationBarTitle({
				title: options.title
			})
			let _t = this
			let params = {}
			
			if(options.key){
				params.key = options.key
			}else{
				params.id = options.id
			}
			
			JSMRequest({
				tag: "jsm-article-detail",
				method: "POST",
				params
			}).then(({data}) => {
				_t.content = data.content
			}).catch(e => {
				
			})
		}
	}
</script>

<style lang="less">
	.container{
		
	}
</style>
